package com.yxx.service;

import com.aliyuncs.CommonRequest;
import com.yxx.entityModel.vo.Result.PageResult;
import com.yxx.entityModel.vo.query.CommentQuery;
import com.yxx.entityModel.vo.query.PageQuery;
import com.yxx.entityModel.vo.request.CheckRequest;
import com.yxx.entityModel.vo.request.CommentRequest;
import com.yxx.entityModel.vo.response.CommentBackResponse;
import com.yxx.entityModel.vo.response.CommentResponse;
import com.yxx.entityModel.vo.response.RecentCommentResponse;
import com.yxx.entityModel.vo.response.ReplyResponse;

import java.util.List;

/**
 * @author yuxiangxun
 * @date 2025/2/6
 * @apiNote
 */
public interface CommentService {
    /**
     * 查看后台评论列表
     * @param commentQuery
     * @return
     */
    PageResult<CommentBackResponse> commentBackList(CommentQuery commentQuery);

    /**
     * 添加评论
     * @param commentRequest
     */
    void addComment(CommentRequest commentRequest);

    /**
     * 审核评论
     * @param checkRequest
     */
    void updateCommentCheck(CheckRequest checkRequest);

    /**
     * 查看最新评论
     * @return
     */
    List<RecentCommentResponse> RecentCommentList();

    /**
     * 删除评论
     * @param commentIdList
     */
    void removeByIds(List<Integer> commentIdList);

    /**
     * 查看评论
     * @param commentQuery
     * @return
     */
    PageResult<CommentResponse> commentList(CommentQuery commentQuery);

    /**
     * 查看回复评论
     * @param commentId
     * @return
     */
    List<ReplyResponse> replyList(Integer commentId);
}
